﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CandidateInvMaster.aspx.cs" Inherits="Candidate_CandidateInvMaster" MasterPageFile="~/MasterPages/AdminMaster.master" %>


<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <style type="text/css">
        .Background {
            background-color: Black;
            filter: alpha(opacity=90);
            opacity: 0.8;
        }

        .Popup {
            background-color: #FFFFFF;
            border-width: 3px;
            border-style: solid;
            border-color: black;
            padding-top: 5px;
            padding-left: 5px;
            width: 650px;
            height: 350px;
        }

        .lbl {
            font-size: 16px;
            font-style: italic;
            font-weight: bold;
        }
        .auto-style8 {
            height: 21px;
        }
    </style>
     <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
    </asp:ScriptManager>
     <table style="width: 100%" id="TABLE1" cellspacing="1" cellpadding="1" border="0">
         <tbody>
             <tr>
                                <td width="50%" align="right" class="auto-style3-1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                             Candidate Registration Number :<font color="red">*</font>&nbsp;
                                </td>
                                <td align="left" width="40%">
                                    <asp:TextBox ID="txtRegNum" runat="server" Width="245px" MaxLength="35" placeholder="Reg. number"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtRegNum" ErrorMessage="Enter Registration Number" ForeColor="Red"></asp:RequiredFieldValidator>
                                </td>                               
                                <td align="left" width="10%">
                                    <asp:Button ID="btnSearchRegId" runat="server" Text="Search" OnClick="btnSearchRegId_Click" /></td>
                            </tr>
                            <tr>
                                <td></td>
                                <td align="left">
                                    <asp:Label ID="lblErrorMsg" runat="server" Visible="false" ForeColor="Red" /></td>
                            </tr>                            
                        </tbody>
                    </table>
    <table style="width: 100%" id="TABLE2" cellspacing="1" cellpadding="1" border="0">
        <tbody>
            <tr>
                <td>
                    <asp:GridView ID="gvByRegID" runat="server" DataKeyNames="CandidateID" Width="70%"
                            AutoGenerateColumns="False" ForeColor="#333333" HeaderStyle-Height="30px" OnRowCommand="gvByRegID_RowCommand"                            
                             >
                            <Columns>


                                <asp:BoundField DataField="CandidateID" HeaderText="CandidateId" />
                                <asp:BoundField DataField="RegistrationNo" HeaderText="&nbsp;Registration No" />

                                <asp:BoundField DataField="CandidateName" HeaderText="&nbsp;Candidate Name" />
                                <asp:BoundField DataField="AccrediationType" HeaderText="&nbsp;Candidate Type" />
                                <%--<asp:HyperLinkField DataNavigateUrlFields="CandidateID" DataNavigateUrlFormatString="~/home/CandidateDetailsReg.aspx?CandidateID={0}"
                                    HeaderText="&nbsp;View" Text="Details" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="left" />--%>
                                <%-- <asp:TemplateField HeaderText="&nbsp;Delete">
                                   <ItemStyle Width="12%" HorizontalAlign="left" />
                                    <ItemTemplate>
                                    <asp:LinkButton ID="lnkDelete" CommandArgument='<%# Eval("CandidateId") %>' CommandName="Delete" runat="server">Delete</asp:LinkButton>
                                    </ItemTemplate>
                                    </asp:TemplateField>--%>
                                <asp:BoundField DataField="InvoiceNo" HeaderText="InvoiceNo" />
                                <asp:BoundField DataField="InvoiceDate" HeaderText="InvoiceDate" />
                                <asp:ButtonField ButtonType="Button" Text="Generate Invoice" CommandName="BtnInvGenerate" />
                            </Columns>
                            <FooterStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#E2DED6" ForeColor="blue" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                            <EditRowStyle BackColor="#CCCCCC" />
                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />

                            <EmptyDataTemplate>No Records Found </EmptyDataTemplate>
                        </asp:GridView>
                
                    
                </td>
            </tr>
        </tbody>

    </table>
</asp:Content>